|
Menü konumu |
---|
Taslak → Etiket |
Tezgahlar |
Taslak, Mimari |
Varsayılan kısayol |
D L |
Versiyonda tanıtıldı |
- |
Ayrıca bkz |
Metin, Şekil dizesi |
Etiket aracı, 2 segmentli bir lider satırı ve bir ok içeren çok satırlı bir metin kutusu ekler. Komutu başlatırken bir nesne veya bir alt eleman (yüz, kenar veya tepe) seçilirse, Etiket, konum, uzunluk, alan, hacim veya malzeme de dahil olmak üzere seçilen öğenin belirli bir niteliğini görüntülemek için yapılabilir.
If an object or a sub-element (face, edge or vertex) is selected when starting the command, the text can be made to display one or two attributes of the selected element, including position, length, area, volume and material. The text will then be linked to the attributes and will update if their values change.
Oksuz daha basit bir metin elemanı eklemek için Metin kullanın. Düz metin şekilleri oluşturmak için Şekil dizesi ile Parça Çıkar kullanın.
Farklı yönelimleri, ipucu sembolleri ve bilgileri içeren çeşitli etiketler
See also: Draft Tray, Draft Snap and Draft Constrain.
The single character keyboard shortcuts available in the task panel can be changed. See Draft Preferences. The shortcuts mentioned here are the default shortcuts.
The following label types are available:
Tag
özniteliğini görüntüler.Not: yatay düz parçanın yönü, sağa veya sola doğru, metni otomatik olarak ters yöne hizalar. Lider dikey olarak yukarı çıkarsa, metin sola hizalanır; dikey olarak aşağı inerse, sağa hizalanır.
See also: Property editor.
A Draft Label object is derived from an App FeaturePython object and inherits all its properties. The following properties are additional unless otherwise stated:
Label
Leader
VectorList
): specifies the points of the leader.Enumeration
): specifies the direction of the first leader segment: Custom
, Horizontal
or Vertical
.Distance
): specifies the length of the first leader segment. Only used if VeriStraight Direction is Horizontal
or Vertical
. If the distance is positive, the leader starts from the right side of the text and the text aligns to the right. Otherwise the leader starts from the left side of the text and the text aligns to the left.Target
LinkSub
): specifies the object and optional subelement the label is linked to.Vector
): specifies the position of the tip of the leader, which is where the arrow is attached.Annotation
Enumeration
): specifies the annotation style applied to the label. See Draft AnnotationStyleEditor.Float
): specifies the general scaling factor applied to the label.Display Options
Enumeration
): specifies how the text is displayed. If it is World
the text will be displayed on a plane defined by the VeriPlacement of the label. If it is Screen
the text will always face the screen. This is an inherited property. The mentioned options are the renamed options (introduced in version 0.21).Graphics
true
ise, lider satır görüntülenecektir; Aksi halde, sadece baştaki metin ve sembol gösterilecektir.Text
Font
): specifies the font used to draw the text. It can be a font name, such as Arial
, a default style such as sans
, serif
or mono
, a family such as Arial,Helvetica,sans
, or a name with a style such as Arial:Bold
. If the given font is not found on the system, a default font is used instead. introduced in version 0.21Length
): specifies the size of the letters. The text can be invisible in the 3D view if this value is very small. introduced in version 0.21Enumeration
): specifies the horizontal alignment of the text: Left
, Center
or Right
. Only used if VeriStraight Direction is Custom
. Otherwise the horizontal alignment is based on the sign (positive or negative) of VeriStraight Distance.Float
): specifies the factor applied to the default line height of the text.Integer
): specifies the maximum number of characters on each line of the text.Enumeration
): specifies the vertical alignment of the text: Top
, Middle
or Bottom
.Color
): specifies the color of the text.Ayrıca bkz.: Taslak API ve FreeCAD Betik esasları.
label = make_label(target_point=App.Vector(0, 0, 0),
placement=App.Vector(30, 30, 0),
target_object=None, subelements=None,
label_type="Custom", custom_text="Label",
direction="Horizontal", distance=-10,
points=None)
Örnek:
import FreeCAD as App
import Draft
doc = App.newDocument()
rectangle = Draft.make_rectangle(4000, 1000)
doc.recompute()
p1 = App.Vector(-200, 1000, 0)
place1 = App.Placement(App.Vector(-1000, 1300, 0), App.Rotation())
label1 = Draft.make_label(p1, place1, target_object=rectangle, distance=500, label_type="Label")
label1.ViewObject.FontSize= 200
p2 = App.Vector(-200, 0, 0)
place2 = App.Placement(App.Vector(-1000, -300, 0), App.Rotation())
label2 = Draft.make_label(p2, place2, target_object=rectangle, distance=500, label_type="Custom",
custom_text="Beware of the sharp edges")
label2.ViewObject.FontSize= 200
p3 = App.Vector(1000, 1200, 0)
place3 = App.Placement(App.Vector(2000, 1800, 0), App.Rotation())
label3 = Draft.make_label(p3, place3, target_object=rectangle, distance=-500, label_type="Area")
label3.ViewObject.FontSize= 200
doc.recompute()